package org.walkerljl.boss.service.blog;

import org.walkerljl.boss.domain.blog.Article;
import org.walkerljl.boss.domain.blog.Collection;
import org.walkerljl.boss.domain.blog.Comment;
import org.walkerljl.boss.domain.blog.Focus;
import org.walkerljl.boss.support.service.BaseService;

/**
 * ArticleService
 *
 * @author lijunlin
 */
public interface ArticleService extends BaseService<Long, Article> {

    /**
     * 阅读
     *
     * @param id
     * @param readerId 阅读者Id
     * @return
     */
    Article read(Long id, String readerId);

    /**
     * 评论
     *
     * @param comment
     * @return
     */
    boolean comment(Comment comment);

    /**
     * 点赞
     *
     * @param id
     * @return
     */
    boolean praise(Long id);

    /**
     * 收藏
     *
     * @param collection
     * @return
     */
    boolean collect(Collection collection);

    /**
     * 关注
     *
     * @param focus
     * @return
     */
    boolean focus(Focus focus);
}